﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using TavDom.Library.Core.Entities;

namespace TavDom.Library.Entities.Concrete
{
    public class User : IEntity
    {
        public int Id { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public string Email { get; set; }
        public string Name { get; set; }
        public string Surname { get; set; }
        public DateTime CreateDate { get; set; }
        public virtual User CreatedBy { get; set; }
        public DateTime UpdateDate { get; set; }
        public virtual User UpdatedBy { get; set; }
        public int Sort { get; set; }
        public bool IsApproved { get; set; }

        [NotMapped]
        public virtual ICollection<User> UserCreated { get; set; }
        [NotMapped]
        public virtual ICollection<User> UserUpdated { get; set; }

        [NotMapped]
        public virtual ICollection<ContentType> ContentTypeCreated { get; set; }
        [NotMapped]
        public virtual ICollection<ContentType> ContentTypeUpdated { get; set; }

    }
}
